﻿@model VehicleManagement.Models.Accident

@{
    ViewBag.Title = "Create";
    
}
<script type="text/javascript">
    $(function () {
        $("#Date").datepicker({
            showOn: "button",
            buttonImage: "/Content/themes/picture/calendar.gif",
            buttonImageOnly: true
        });
        $.post("/Driver/GetDriverNameList", {},
            function (data) {
                $("#DriverName").empty();
                $.each(data, function () {
                    $("#DriverName").append('<option>' + this + '</option>');
                });
            });
        $.post("/CarInfo/GetCarNumberList", {},
            function (data) {
                $("#CarNumber").empty();
                $.each(data, function () {
                    $("#CarNumber").append('<option>' + this + '</option>');
                });
            });
    });
</script>
<div class="mas">
<div class="toptitle">
   系统管理员管理平台
</div>
@*<div class="car"></div>*@
@Html.Partial("_PartviewDriverManager")
<div class="rightshow">
   @using (Html.BeginForm())
   {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend></legend>
        <div class="box">
        <div class="box-detail-nopic-create" >
        <div class="span-title"><span>事故信息录入</span></div>
          <div class ="box-detail3 detail1-no2">        
          <div class ="box-detail3-wrap detail1-no2">
        <div class="box-detail1-linetype1">
            <span class="labeldisplay">@Html.LabelFor(model => model.CarNumber):</span>
            @Html.DropDownListFor(model => model.CarNumber, new SelectList(new[] { "车牌号" }, "车牌号"))
            @Html.ValidationMessageFor(model => model.CarNumber)
        </div>
        <div class="box-detail1-linetype1">
            <span class="labeldisplay">@Html.LabelFor(model => model.DriverName):</span>
             @Html.DropDownListFor(model => model.DriverName, new SelectList(new[] { "司机姓名" }, "司机姓名"))
            @Html.ValidationMessageFor(model => model.DriverName)
        </div>
        <div class="box-detail1-linetype1">
            <span class="labeldisplay">@Html.LabelFor(model => model.Date):</span>
            @Html.EditorFor(model => model.Date)@Html.ValidationMessageFor(model => model.Date)
        </div>
        <div class="box-detail1-linetype1">
            <span class="labeldisplay">@Html.LabelFor(model => model.Cost):</span>
            @Html.EditorFor(model => model.Cost)@Html.ValidationMessageFor(model => model.Cost)
        </div>
        <div class="box-detail1-linetype1">
            <span class="labeldisplay">@Html.LabelFor(model => model.Location):</span>
            @Html.EditorFor(model => model.Location)@Html.ValidationMessageFor(model => model.Location)
        </div>
        <div class="box-detail1-linetype1">
            <span class="labeldisplay">@Html.LabelFor(model => model.AccidentDetail):</span>
            @Html.EditorFor(model => model.AccidentDetail)@Html.ValidationMessageFor(model => model.AccidentDetail)
        </div>
        <div class="box-detail1-linetype1">
            <span class="labeldisplay">@Html.LabelFor(model => model.Blame):</span>
            @Html.EditorFor(model => model.Blame)@Html.ValidationMessageFor(model => model.Blame)
        </div>
        <div class="box-detail1-linetype1">
            <span class="labeldisplay">@Html.LabelFor(model => model.Reason):</span>
            @Html.EditorFor(model => model.Reason)@Html.ValidationMessageFor(model => model.Reason)
        </div>
        <div class="box-detail1-linetype1">
            <span class="labeldisplay">@Html.LabelFor(model => model.Injurie):</span>
            @Html.EditorFor(model => model.Injurie)@Html.ValidationMessageFor(model => model.Injurie)
        </div>
        <div class="box-detail1-linetype1">
            <span class="labeldisplay">@Html.LabelFor(model => model.Result):</span>
            @Html.EditorFor(model => model.Result)@Html.ValidationMessageFor(model => model.Result)
        </div>

        <div class="button-wrap button-wrap-table">
                <input class="button-add" type="submit" value="添 加" />
                <input class="button-back" type="button" value="取 消" />  
        </div>
        </div>
        </div>
        </div>
        </div>
         
    </fieldset>
}



</div>


<div class="clear"></div>
	
</div>


